/*
 * @Author: your name
 * @Date: 2020-09-21 14:44:35
 * @LastEditTime: 2020-09-25 17:01:01
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \im.xuanma.cnd:\study\study2\vue-admin-template\src\api\user.js
 */




import request from '@/utils/request'
//登录
export function login(data) {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
}
//获取信息
export function getInfo(token) {
  return request({
    url: '/admin/info',
    method: 'get',
    params: { token,cip:`${returnCitySN.cip}`,name:`${returnCitySN.cname}`}
  })
}
//退出登录
export function logout() {
  return request({
    url: '/admin/logout',
    method: 'post'
  })
}
